<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<table class="table">
    <thead>
    <tr>
        <th>企业编号</th>
        <th>企业名称</th>
        <th>法人名称</th>
        <th>证件号码</th>
        <th>公司类型</th>
        <th>Email地址</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {foreach $data as $val}
    <tr>
        <td>{$val.number}</td>
        <td>{$val.compny_name}</td>
        <td>{$val.naem}</td>
        <td>
            {:str_replace(substr($val.Idcard,6,8),'********',$val.Idcard)}
        </td>
        <td>{$val.type}</td>
        <td>{$val.email}</td>
        <td><a href="{:url('/delCompany',['id'=>$val.id])}"><button type="button" class="btn btn-danger">删除</button></a><a href="{:url('/updateShow',['id'=>$val.id])}"><button type="button" class="btn btn-warning">修改</button></a></td>
    </tr>
    {/foreach}
    </tbody>
</table>

</body>
</html>